LIBPATH=../../..
CC=gcc
CFLAGS=-Wall -g
INCLS=-I$(LIBPATH)/include
LIBS=-L$(LIBPATH)/lib -lthe9 -L$(ORACLE_HOME)/lib -lclntsh -lpthread -lcrypto -lm

BINS=my_emp my_emp_mt

.PHONY : all clean

all : $(BINS)

$(BINS) : % : %.c
	$(CC) $(CFLAGS) $(INCLS) -o $@ $< $(LIBS)
	chmod 744 $@

clean :
	rm -f core* $(BINS)
